package com.torry.workflow.service.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.torry.workflow.api.user.entity.Org;
import com.torry.workflow.service.user.mapper.OrgMapper;
import com.torry.workflow.service.user.service.IOrgService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author torry
 * @since 2021-12-25
 */
@Service
public class OrgServiceImpl extends ServiceImpl<OrgMapper, Org> implements IOrgService {
    @Resource
    private OrgMapper orgMapper;

    @Override
    public List<Org> getOrgTree() {
        List<Org> orgs = orgMapper.selectOrgTree();
        return orgs;
    }
}
